<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>chimera.controllers.scheduler.constraints.moondistanceconstraint</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="chimera-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://chimera.ufsc.br/">Chimera - Observatoty Automation System</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="chimera-module.html">Package&nbsp;chimera</a> ::
        <a href="chimera.controllers-module.html">Package&nbsp;controllers</a> ::
        <a href="chimera.controllers.scheduler-module.html">Package&nbsp;scheduler</a> ::
        <a href="chimera.controllers.scheduler.constraints-module.html">Package&nbsp;constraints</a> ::
        Module&nbsp;moondistanceconstraint
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="chimera.controllers.scheduler.constraints.moondistanceconstraint-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="chimera.controllers.scheduler.constraints.moondistanceconstraint-module.html">Module chimera.controllers.scheduler.constraints.moondistanceconstraint</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno"> 1</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-0" class="py-name" targets="Package chimera=chimera-module.html"><a title="chimera" class="py-name" href="#" onclick="return doclink('link-0', 'chimera', 'link-0');">chimera</a></tt><tt class="py-op">.</tt><tt id="link-1" class="py-name" targets="Package chimera.controllers=chimera.controllers-module.html,Static Method chimera.core.path.ChimeraPath.controllers()=chimera.core.path.ChimeraPath-class.html#controllers"><a title="chimera.controllers
chimera.core.path.ChimeraPath.controllers" class="py-name" href="#" onclick="return doclink('link-1', 'controllers', 'link-1');">controllers</a></tt><tt class="py-op">.</tt><tt id="link-2" class="py-name" targets="Package chimera.controllers.scheduler=chimera.controllers.scheduler-module.html"><a title="chimera.controllers.scheduler" class="py-name" href="#" onclick="return doclink('link-2', 'scheduler', 'link-2');">scheduler</a></tt><tt class="py-op">.</tt><tt id="link-3" class="py-name" targets="Package chimera.controllers.scheduler.constraints=chimera.controllers.scheduler.constraints-module.html,Variable chimera.controllers.scheduler.model.Exposure.constraints=chimera.controllers.scheduler.model.Exposure-class.html#constraints,Variable chimera.controllers.scheduler.model.Observation.constraints=chimera.controllers.scheduler.model.Observation-class.html#constraints,Variable chimera.controllers.scheduler.model.Program.constraints=chimera.controllers.scheduler.model.Program-class.html#constraints"><a title="chimera.controllers.scheduler.constraints
chimera.controllers.scheduler.model.Exposure.constraints
chimera.controllers.scheduler.model.Observation.constraints
chimera.controllers.scheduler.model.Program.constraints" class="py-name" href="#" onclick="return doclink('link-3', 'constraints', 'link-3');">constraints</a></tt> <tt class="py-keyword">import</tt> <tt id="link-4" class="py-name" targets="Class chimera.controllers.scheduler.constraints.IConstraint=chimera.controllers.scheduler.constraints.IConstraint-class.html"><a title="chimera.controllers.scheduler.constraints.IConstraint" class="py-name" href="#" onclick="return doclink('link-4', 'IConstraint', 'link-4');">IConstraint</a></tt> </tt>
<a name="L2"></a><tt class="py-lineno"> 2</tt>  <tt class="py-line"> </tt>
<a name="MoonDistanceConstraint"></a><div id="MoonDistanceConstraint-def"><a name="L3"></a><tt class="py-lineno"> 3</tt> <a class="py-toggle" href="#" id="MoonDistanceConstraint-toggle" onclick="return toggle('MoonDistanceConstraint');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="chimera.controllers.scheduler.constraints.moondistanceconstraint.MoonDistanceConstraint-class.html">MoonDistanceConstraint</a><tt class="py-op">(</tt><tt class="py-base-class">IConstraint</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="MoonDistanceConstraint-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="MoonDistanceConstraint-expanded"><a name="MoonDistanceConstraint.getMyKey"></a><div id="MoonDistanceConstraint.getMyKey-def"><a name="L4"></a><tt class="py-lineno"> 4</tt> <a class="py-toggle" href="#" id="MoonDistanceConstraint.getMyKey-toggle" onclick="return toggle('MoonDistanceConstraint.getMyKey');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="chimera.controllers.scheduler.constraints.moondistanceconstraint.MoonDistanceConstraint-class.html#getMyKey">getMyKey</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="MoonDistanceConstraint.getMyKey-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="MoonDistanceConstraint.getMyKey-expanded"><a name="L5"></a><tt class="py-lineno"> 5</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-string">'MoonDistance'</tt> </tt>
</div><a name="L6"></a><tt class="py-lineno"> 6</tt>  <tt class="py-line">     </tt>
<a name="MoonDistanceConstraint.__str__"></a><div id="MoonDistanceConstraint.__str__-def"><a name="L7"></a><tt class="py-lineno"> 7</tt> <a class="py-toggle" href="#" id="MoonDistanceConstraint.__str__-toggle" onclick="return toggle('MoonDistanceConstraint.__str__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="chimera.controllers.scheduler.constraints.moondistanceconstraint.MoonDistanceConstraint-class.html#__str__">__str__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="MoonDistanceConstraint.__str__-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="MoonDistanceConstraint.__str__-expanded"><a name="L8"></a><tt class="py-lineno"> 8</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-string">'Constraint based upon the distance from the moon'</tt> </tt>
</div><a name="L9"></a><tt class="py-lineno"> 9</tt>  <tt class="py-line">     </tt>
<a name="MoonDistanceConstraint.checkConstraint"></a><div id="MoonDistanceConstraint.checkConstraint-def"><a name="L10"></a><tt class="py-lineno">10</tt> <a class="py-toggle" href="#" id="MoonDistanceConstraint.checkConstraint-toggle" onclick="return toggle('MoonDistanceConstraint.checkConstraint');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="chimera.controllers.scheduler.constraints.moondistanceconstraint.MoonDistanceConstraint-class.html#checkConstraint">checkConstraint</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">paramMin</tt><tt class="py-op">,</tt> <tt class="py-param">paramMax</tt><tt class="py-op">,</tt> <tt class="py-param">exposure</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">observation</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">program</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="MoonDistanceConstraint.checkConstraint-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="MoonDistanceConstraint.checkConstraint-expanded"><a name="L11"></a><tt class="py-lineno">11</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt id="link-5" class="py-name" targets="Variable chimera.controllers.scheduler.model.Constraint.exposure=chimera.controllers.scheduler.model.Constraint-class.html#exposure"><a title="chimera.controllers.scheduler.model.Constraint.exposure" class="py-name" href="#" onclick="return doclink('link-5', 'exposure', 'link-5');">exposure</a></tt> <tt class="py-op">==</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L12"></a><tt class="py-lineno">12</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">DONTCARE</tt> </tt>
</div></div><a name="L13"></a><tt class="py-lineno">13</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="chimera-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://chimera.ufsc.br/">Chimera - Observatoty Automation System</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    <a href="epydoc-log.html">Generated by Epydoc
    3.0beta1 on Sat Feb  7 18:37:02 2009</a>
    </td>
    <td align="right" class="footer">
      <a href="http://epydoc.sourceforge.net">http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie()
  // -->
</script>
  
</body>
</html>
